import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/rpaInformation',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/rpaInformation/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/rpaInformation',
    method: 'put',
    data
  })
}

export function addAPI(data) {
  return request({
    url: 'api/rpaInformation/add',
    method: 'post',
    data
  })
}

export function submitValidateAPI(data) {
  return request({
    url: 'api/rpaInformation/rpainfo/confirm',
    method: 'post',
    data
  })
}

export function submitAllValidateAPI(data) {
  return request({
    url: 'api/rpaInformation/rpainfo/allConfirm',
    method: 'post',
    data
  })
}

export function cancelValidAPI(data) {
  return request({
    url: 'api/rpaInformation/rpainfo/cancelConfirm',
    method: 'post',
    data
  })
}

export default { add, edit, del, addAPI, submitValidateAPI, submitAllValidateAPI, cancelValidAPI }
